#!/bin/bash
echo "scanf filename:"
read lee_path
if [ -d "$lee_path" ];then
echo "exist"
exit 0
fi
echo "next directory:"
read back_lee_path
if [ -d "$back_lee_path" ];then
echo "existed!"
else
echo "wrong!" 
exit 0
fi
YEAR=`date +%Y`
MONTH=`date+%m`
DATE=`date+%Y%m%d_%H:%M:%S`
tar -czpvf ${back_lee_path}/${filename}.tar.gz ${lee_path}

